from ConfigClass import ConfigClass
from Detector import Detector
from VideoCaptureNew import VideoCapture
from MyTrackerB import MyTracker

if __name__ == '__main__':
    config = ConfigClass()

    MyTracker.max_widthX = config.max_widthX
    MyTracker.min_widthX = config.min_widthX
    MyTracker.areaThreshold = config.areaThreshold
    MyTracker.myTrackerList = []
    MyTracker.xStep = config.xStep
    MyTracker.yStep = 0
    MyTracker.direct = config.direct
    MyTracker.widthStep = config.widthStep

    detector = Detector(config.tfFilePath, config.confidenceThreshold)
    video_capture = VideoCapture(config, detector)
    # 启动获取照片主线程
    video_capture.video_capture_func()
